package org.dreamwork.jasmine2.i18n;

import org.dreamwork.i18n.IResourceManager;

import javax.servlet.ServletContext;
import java.util.Locale;

/**
 * Created with IntelliJ IDEA.
 * User: seth.yang
 * Date: 12-11-1
 * Time: 下午5:16
 */
public class WebXmlResourceManagerFactory implements IWebResourceManagerFactory{
    public IResourceManager getResourceManager (ServletContext context, Locale defaultLocale, String resourceName) {
        WebResourceManager manager = new WebResourceManager (context, defaultLocale, resourceName);
        manager.initResources ();
        return manager;
    }
}